package br.com.felix.fwt.ui.image.dao;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Serializable;

public abstract class TextImageBuilderDAO implements Serializable{

	private String text, font;
	
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public String getFont() {
		return font;
	}
	public void setFont(String font) {
		this.font = font;
	}
	/**
	 * Tells where to save the generated image.
	 * */
	public abstract OutputStream getImageOutputStream() throws IOException;
	/**
	 * Tells where to read the font stream from.
	 * @throws IOException 
	 * */
	public abstract InputStream getFontInputStream() throws IOException;
	/**
	 * Returns the URL to be used in the src attribute of the image element.
	 * */
	public abstract String getWebFilePath();
	/**
	 * Tells whether the image needs to be generated again
	 * */
	public abstract boolean needsToBeCreated();
}
